package com.ss.android.lockscreen.views;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.View;

public class b extends ViewPager {
    private PageTransformer n;

    public b(Context arg1) {
        super(arg1);
    }

    public b(Context arg1, AttributeSet arg2) {
        super(arg1, arg2);
    }

    public final void onPageScrolled(int arg8, float arg9, int arg10) {
        super.onPageScrolled(arg8, arg9, arg10);
        int v2 = this.getMeasuredWidth() - this.getPaddingLeft() - this.getPaddingRight();
        if (this.n != null) {
            int v3 = this.getScrollX();
            int v4 = this.getChildCount();
            int v1;
            for (v1 = 0; v1 < v4; ++v1) {
                View v5 = this.getChildAt(v1);
                if (!((LayoutParams) v5.getLayoutParams()).isDecor) {
                    this.n.transformPage(v5, (((float) (v5.getLeft() - this.getPaddingLeft() - v3))) / (((float) v2)));
                }
            }
        }
    }

    public final void setPageTransformer(boolean b, PageTransformer arg1) {
        this.n = arg1;
    }
}

